package com.baseproject.datasource.get.request.params;

import java.util.HashMap;
import java.util.Map;

/**
 * 网络请求所需参数
 */

public class RemoteRequestParams extends RequestParams {

    String url = "";
    HashMap<String, String> headerParams =  new HashMap<>();
    Map<String, String> queryParams = new HashMap<>();

    public RemoteRequestParams() {
    }

    public RemoteRequestParams(String uniqueKey, String url) {
        super(uniqueKey);
        this.url = url;
    }

    public HashMap<String, String> getHeaderParams() {
        return headerParams;
    }

    public RemoteRequestParams setHeaderParams(HashMap<String, String> headerParams) {
        this.headerParams = headerParams;
        return this;
    }

    public Map<String, String> getQueryParams() {
        return queryParams;
    }

    public RemoteRequestParams setQueryParams(Map<String, String> queryParams) {
        this.queryParams = queryParams;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public RemoteRequestParams setUrl(String url) {
        this.url = url;
        return this;
    }
}
